﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackJack1
{
    internal class Card
    {
        private string color;
        private int num;
        private string image;

        public string Color { set { color = value; } get { return color; } }
        public int Num { set { num = value; } get { return num; } }
        public Card(string color, int num) 
        {
            this.color = color;
            this.num = num;
        }

        public override string ToString()
        {
            string valueStr = Num switch
            {
                1 => "A",
                11 => "J",
                12 => "Q",
                13 => "K",
                _ => Num.ToString(),
            };
            return $"{color}" + valueStr;
        }
    }
}
